def test_extract_common_args(self, extract_common_args): extract_common_args.return_value = {"something": "else"} self.assertEqual(forms._radio(), { "something": "else", "lookuplist": None })
def test_radio_lookuplists(self, extract_common_args): extract_common_args.return_value = {} result = forms._radio(lookuplist="something") self.assertEqual(result, dict(lookuplist="something"))