Beispiel #1
0
    def test_validate_labels_walks_thru_all_revisions(self, walk_mock,
                                                      validate_mock):

        revisions = [mock.Mock() for i in range(10)]
        walk_mock.return_value = revisions
        cli.validate_labels(self.configs[0])
        validate_mock.assert_has_calls(
            [mock.call(mock.ANY, revision) for revision in revisions])
    def test_validate_labels_walks_thru_all_revisions(
        self, walk_mock, validate_mock):

        revisions = [mock.Mock() for i in range(10)]
        walk_mock.return_value = revisions
        cli.validate_labels(self.configs[0])
        validate_mock.assert_has_calls(
            [mock.call(mock.ANY, revision) for revision in revisions]
        )
 def test_validate_labels(self, *mocks):
     cli.validate_labels(cli.get_neutron_config())
Beispiel #4
0
 def test_validate_labels(self, *mocks):
     cli.validate_labels(cli.get_neutron_config())