コード例 #1
0
 def test_db_exception(self):
     command = "this is an invalid keyword"
     with self.assertRaises(ValueError):
         Database.read_from_db(command)
コード例 #2
0
 def test_read_from_db(self):
     command = "what is your name"
     self.assertTrue(Database.read_from_db(command))