示例#1
0
    def test_databaseExitIfownerNameIsEmpty_assertFalse(self):
        huge_str = ''
        for i in range(150):
            huge_str += '#'

        db = SqliteDB()
        with self.assertRaises(SystemExit):
            db.add_dependency("Some_repo", "v0.0.2", "e45d87", huge_str)
示例#2
0
 def test_databaseExitIfownerNameIsEmpty_assertFalse(self):
     db = SqliteDB()
     with self.assertRaises(SystemExit):
         db.add_dependency("Some_repo", "v0.0.2", "e45d87", "")