def test_valid_flags(self): flags = options.get_build_provider_flags(self.provider, **self.kwargs) self.assertThat(flags, Equals(self.flags))
def test_ignored(self): kwargs = dict(notrelevant="foo") flags = options.get_build_provider_flags("lxd", **kwargs) self.assertThat(flags, Equals(dict()))
def test(self, provider, kwargs, flags): assert options.get_build_provider_flags(provider, **kwargs) == flags