Beispiel #1
0
 def test_startproject(self):
     mock_args = MagicMock(name='Mock Args')
     mock_args.name = 'projectname'
     with patch.object(commandline.scaffold_utils, 'start_project') as sp:
         commandline.startproject(mock_args)
         sp.assert_called_with('projectname', commandline.USERLAND_HERE)
 def test_startproject(self):
     mock_args = MagicMock(name='Mock Args')
     mock_args.name = 'projectname'
     with patch.object(commandline.scaffold_utils, 'start_project') as sp:
         commandline.startproject(mock_args)
         sp.assert_called_with('projectname', commandline.USERLAND_HERE)