class TestDatabaseBuilder(unittest.TestCase): def setUp(self): self.builder = DatabaseBuilder() def test_set_database_name(self): self.builder.set_database_name('saothusaonueh') self.assertEqual(self.builder.database_name, 'saothusaonueh') def test_set_database_name_retutrns_self(self): self.assertIsInstance(self.builder, 'DatabaseBuilder')
def setUp(self): self.builder = DatabaseBuilder()