예제 #1
0
    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)
예제 #2
0
    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")
예제 #3
0
 def test_databaseExitIfownerNameIsEmpty_assertFalse(self):
     db = Sqlite_db()
     with self.assertRaises(SystemExit):
         db.add_dep("Some_repo", "v0.0.2", "e45d87", "")
예제 #4
0
 def test_databaseExitIfDependencyNameIsEmpty_assertFalse(self):
     db = Sqlite_db()
     with self.assertRaises(SystemExit):
         db.add_dep("", "v0.0.2", "e45d87", "owner")