Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def test_BioSQL::DupLoadTest::test_duplicate_load2 (   self )
Make sure can't import a single record twice (in steps).

Definition at line 424 of file test_BioSQL.py.

        """Make sure can't import a single record twice (in steps)."""
        record = SeqRecord(Seq("ATGCTATGACTAT", Alphabet.generic_dna),id="Test2")
        count = self.db.load([record])
            count = self.db.load([record])
        except Exception, err:
            self.assertEqual("IntegrityError", err.__class__.__name__)
        raise Exception("Should have failed! Loaded %i records" % count)

Generated by  Doxygen 1.6.0   Back to index