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)
示例#2
0
    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)