示例#1
0
    def test_valid_flags(self):
        flags = options.get_build_provider_flags(self.provider, **self.kwargs)

        self.assertThat(flags, Equals(self.flags))
示例#2
0
    def test_ignored(self):
        kwargs = dict(notrelevant="foo")

        flags = options.get_build_provider_flags("lxd", **kwargs)

        self.assertThat(flags, Equals(dict()))
示例#3
0
 def test(self, provider, kwargs, flags):
     assert options.get_build_provider_flags(provider, **kwargs) == flags