def test_output_set_correctly(self): project = ProjectOptions() instance = lxd.Containerbuild(project_options=project, source='tarball.tgz', metadata=self.snap, container_name='name') self.assertThat(instance._snap_output, Equals(self.expected))
def test_output_set_correctly(self, default_remote_mock): snapcraft_yaml = fixture_setup.SnapcraftYaml( self.path, name=self.name, version=self.version, architectures=self.architectures, ) self.useFixture(snapcraft_yaml) project = Project( snapcraft_yaml_file_path=snapcraft_yaml.snapcraft_yaml_file_path) instance = lxd.Containerbuild(project=project, source="tarball.tgz", container_name="name") self.assertThat(instance.snap_filename, Equals(self.expected))