def testGetFileNumber(self): """" The internal _getFileNumber method must return the expected result. """ index = SqliteIndex(':memory:') self.assertEqual(1, index._addFilename('filename.fasta')) self.assertEqual(1, index._getFileNumber('filename.fasta')) index.close()
def testGetFileNumber(self): """" The internal _getFileNumber method must return the expected result. """ index = SqliteIndex(':memory:') self.assertEqual(1, index._addFilename('filename.fasta')) self.assertEqual(1, index._getFileNumber('filename.fasta')) index.close()
def testGetNonexistentFileNumber(self): """" If the internal _getFileNumber method is called with a file whose name has not been added, it must return None. """ index = SqliteIndex(':memory:') self.assertEqual(None, index._getFileNumber('filename.fasta')) index.close()
def testGetNonexistentFileNumber(self): """" If the internal _getFileNumber method is called with a file whose name has not been added, it must return None. """ index = SqliteIndex(':memory:') self.assertEqual(None, index._getFileNumber('filename.fasta')) index.close()