def test_gain_expect_gain(self): test_configuration = Configuration() expected_gain = '49.6' actual_gain = test_configuration.gain() assert actual_gain == expected_gain
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'