def test_have_internet_again(self):
        # Given
        connection_handler = ConnectionHandler(*fake_params)
        connection_handler.internet_ok = False

        # When
        connection_handler.update()

        # Then
        self.assertTrue(connection_handler.internet_ok)
Example #2
0
    def test_have_internet_again(self):
        # Given
        connection_handler = ConnectionHandler(*fake_params)
        connection_handler.internet_ok = False

        # When
        connection_handler.update()

        # Then
        self.assertTrue(connection_handler.internet_ok)