class TestLMIForAllClient(BaseCase): WORKING_SOC_CODE = '5323' FAKE_SOC_CODE = '9999999' def setUp(self): self.lmi = LMIForAllClient() def test_clean_add_titles(self): data = self.lmi.soc_code_info(self.WORKING_SOC_CODE) self.assertTrue('Furniture Polisher' in data['add_titles']) def test_soc_info_404(self): self.assertRaises( LMIForAllException, self.lmi.soc_code_info, self.FAKE_SOC_CODE) def test_hours_worked(self): self.assertEqual(self.lmi.hours_worked(self.WORKING_SOC_CODE), 43) def test_pay(self): self.assertEqual(self.lmi.pay(self.WORKING_SOC_CODE), 550)
class TestLMIForAllClient(BaseCase): WORKING_SOC_CODE = '5432' FAKE_SOC_CODE = '9999999' def setUp(self): self.lmi = LMIForAllClient() def test_clean_add_titles(self): data = self.lmi.soc_code_info(self.WORKING_SOC_CODE) self.assertTrue("Baker's Assistant" in data['add_titles']) def test_soc_info_404(self): self.assertRaises( LMIForAllException, self.lmi.soc_code_info, self.FAKE_SOC_CODE) def test_hours_worked(self): self.assertEqual(self.lmi.hours_worked(self.WORKING_SOC_CODE), 42) def test_pay(self): self.assertEqual(self.lmi.pay(self.WORKING_SOC_CODE), 420)
def setUp(self): self.lmi = LMIForAllClient()