Fixed tests for real

doc_update
Joey Hines 2019-02-03 09:01:34 -06:00
parent 723124f26e
commit a668ade97d
1 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,7 @@ class CommandsAPITestCase(TestCase):
self.assertEquals(shop.id, self.shop.id) self.assertEquals(shop.id, self.shop.id)
self.assertRaises(PlayerInDBError, add_owner, new_owner.name, self.shop.name, discord_uuid=DISCORD_UUID) self.assertRaises(IsOwnerError, add_owner, new_owner.name, self.shop.name, discord_uuid=DISCORD_UUID)
def test_add_resident(self): def test_add_resident(self):
self.populate() self.populate()
@ -192,8 +192,8 @@ class CommandsAPITestCase(TestCase):
self.assertEquals(town.id, self.town.id) self.assertEquals(town.id, self.town.id)
self.assertRaises(PlayerInDBError, add_resident, new_resident.name, self.town.name, discord_uuid=DISCORD_UUID) self.assertRaises(IsResidentError, add_resident, new_resident.name, self.town.name, discord_uuid=DISCORD_UUID)
self.assertRaises(PlayerInDBError, add_resident, self.player.name, self.town.name, discord_uuid=DISCORD_UUID) self.assertRaises(IsResidentError, add_resident, self.player.name, self.town.name, discord_uuid=DISCORD_UUID)
def test_remove_resident(self): def test_remove_resident(self):
self.populate() self.populate()