Beispiel #1
0
    def test_should_return_True_when_try_to_equal_two_the_same_type_objects_with_the_same_values(
            self):
        # GIVEN
        seconds = any_seconds()

        time_since_last_transaction = network_layer.TimeSinceLastTransaction(
            seconds)

        # THEN
        self.assertEqual(time_since_last_transaction,
                         network_layer.TimeSinceLastTransaction(seconds))
Beispiel #2
0
    def test_should_return_seconds_value_when_seconds_property_is_called(self):
        # GIVEN
        seconds = any_seconds()

        time_since_last_transaction = network_layer.TimeSinceLastTransaction(
            seconds)

        # WHEN
        actual_seconds = time_since_last_transaction.seconds

        # THEN
        self.assertEqual(seconds, actual_seconds)