<s> from unittest import TestCase <EOL> from test_utils import Mock , patch <EOL> from pybuilder . core import Project <EOL> from logging import Logger <EOL> from pybuilder . plugins . python . stdeb_plugin import ( <EOL> assert_py2dsc_deb_is_available , <EOL> get_py2dsc_deb_command , <EOL> assert_dpkg_is_available ) <EOL> class CheckStdebAvailableTests ( TestCase ) : <EOL> @ patch ( '<STR_LIT>' ) <EOL> def test_should_check_that_py2dsc_deb_can_be_executed ( self , mock_assert_can_execute ) : <EOL> mock_logger = Mock ( Logger ) <EOL> assert_py2dsc_deb_is_available ( mock_logger ) <EOL> expected_command_line = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> mock_assert_can_execute . assert_called_with ( <EOL> expected_command_line , '<STR_LIT>' , '<STR_LIT>' ) <EOL> @ patch ( '<STR_LIT>' ) <EOL> def test_should_check_that_dpkg_buildpackage_can_be_executed ( self , mock_assert_can_execute ) : <EOL> mock_logger = Mock ( Logger ) <EOL> assert_dpkg_is_available ( mock_logger ) <EOL> expected_command_line = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> mock_assert_can_execute . assert_called_with ( <EOL> expected_command_line , '<STR_LIT>' , '<STR_LIT>' ) <EOL> class StdebBuildCommandTests ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . project = Project ( "<STR_LIT>" ) <EOL> def test_should_generate_stdeb_build_command_with_project_properties ( self ) : <EOL> self . project . set_property ( <EOL> "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . project . set_property ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . project . set_property ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> py2dsc_deb_command = get_py2dsc_deb_command ( self . project ) <EOL> self . assertEqual ( <EOL> py2dsc_deb_command , "<STR_LIT>" ) </s>
