def test_go_right_no_etc_but_file(self):

        self.mockListDir.side_effect = None
        self.mockListDir.return_value = ['app.test.config']

        ret_val = ConfigManager.find_config_file('test')
        self.assertEqual('./app.test.config', ret_val)
    def test_not_found(self):

        self.mockListDir.side_effect = None
        self.mockListDir.return_value = []

        ret_val = ConfigManager.find_config_file('test')
        self.assertIsNone(ret_val)
    def test_go_right(self):

        ret_val = ConfigManager.find_config_file('test')

        self.assertEqual('./etc/app.test.config', ret_val)
        self.assertEqual(2, self.mockListDir.call_count)