def test_databaseExitIfownerNameIsEmpty_assertFalse(self): huge_str = '' for i in range(150): huge_str += '#' db = Sqlite_db() with self.assertRaises(SystemExit): db.add_dep("Some_repo", "v0.0.2", "e45d87", huge_str)
def test_databaseExitIfDependencyNameIsEmpty_assertFalse(self): huge_str = '' for i in range(150): huge_str += '#' db = Sqlite_db() with self.assertRaises(SystemExit): db.add_dep(huge_str, "v0.0.2", "e45d87", "owner")
def test_databaseExitIfownerNameIsEmpty_assertFalse(self): db = Sqlite_db() with self.assertRaises(SystemExit): db.add_dep("Some_repo", "v0.0.2", "e45d87", "")
def test_databaseExitIfDependencyNameIsEmpty_assertFalse(self): db = Sqlite_db() with self.assertRaises(SystemExit): db.add_dep("", "v0.0.2", "e45d87", "owner")