def test_good_row(self, mock_status): mock_status.return_value = self.good_status expected = { "Account ID": "12345", "First Name": "Lex", "Created On": "2011-01-12", "Status": "good", "Status Set On": "2011-01-12" } row = create_output_row(None, self.good_row) assert (row == expected)
def test_good_row(self, mock_status): mock_status.return_value = self.good_status expected = { "Account ID": "12345", "First Name": "Lex", "Created On": "2011-01-12", "Status": "good", "Status Set On": "2011-01-12" } row = create_output_row(None, self.good_row) assert(row == expected)
def test_no_account_id(self): row = create_output_row(None, self.no_id_row) assert (row is None)
def test_no_account_id(self): row = create_output_row(None, self.no_id_row) assert(row is None)