def test_parse_bar_from_string(self): # Arrange bar = TestStubs.bar_5decimal() # Act result = Bar.from_serializable_string(bar.to_serializable_string()) # Assert self.assertEqual(bar, result)
def test_from_serializable_string_given_valid_string_returns_expected_bar( self): # Arrange bar = TestStubs.bar_5decimal() # Act result = Bar.from_serializable_string(bar.to_serializable_string()) # Assert self.assertEqual(bar, result)