コード例 #1
0
ファイル: test_dbutil.py プロジェクト: chubbymaggie/clgen
 def test_is_github(self):
     self.assertFalse(dbutil.is_github(tests.db('empty')))
     self.assertTrue(dbutil.is_github(tests.db('empty-gh')))
コード例 #2
0
ファイル: test_dbutil.py プロジェクト: ChrisCummins/phd
 def test_table_exists(self):
     self.assertTrue(dbutil.table_exists(
         tests.db('empty'), 'ContentFiles'))
     self.assertFalse(dbutil.table_exists(
         tests.db('empty'), 'NotATable'))
コード例 #3
0
ファイル: test_dbutil.py プロジェクト: chubbymaggie/clgen
 def test_table_exists(self):
     self.assertTrue(dbutil.table_exists(tests.db('empty'), 'ContentFiles'))
     self.assertFalse(dbutil.table_exists(tests.db('empty'), 'NotATable'))
コード例 #4
0
ファイル: test_dbutil.py プロジェクト: ChrisCummins/phd
 def test_is_github(self):
     self.assertFalse(dbutil.is_github(tests.db('empty')))
     self.assertTrue(dbutil.is_github(tests.db('empty-gh')))