Exemplo n.º 1
0
    def test_gain_expect_gain(self):
        test_configuration = Configuration()
        expected_gain = '49.6'

        actual_gain = test_configuration.gain()

        assert actual_gain == expected_gain
Exemplo n.º 2
0
    def test_constructor_with_json_expect_constructed(self):
        mock_json = '{"listener":{"gain":"0"}}'
        test_configuration = Configuration()
        test_configuration.load_json(mock_json)

        actual_gain = test_configuration.gain()

        assert actual_gain == '0'