예제 #1
0
class ConfigDirTest(unittest.TestCase):
    def setUp(self):
        self.cli = Cli()

    def test_create_config_dir(self):
        with patch('os.path.exists') as exist:
            with patch('os.mkdir') as mkdir:
                exist.return_value = False
                self.cli.init()
                exist.assert_called_with(CFGDIR)
                mkdir.assert_called_with(CFGDIR)
예제 #2
0
class ConfigDirTest(unittest.TestCase):

    def setUp(self):
        self.cli = Cli()

    def test_create_config_dir(self):
        with patch('os.path.exists') as exist:
            with patch('os.mkdir') as mkdir:
                exist.return_value = False
                self.cli.init()
                exist.assert_called_with(CFGDIR)
                mkdir.assert_called_with(CFGDIR)
예제 #3
0
 def setUp(self):
     self.cli = Cli()
예제 #4
0
 def setUp(self):
     self.cli = Cli()