def test_callback_non_dc(self):
        '''Test read_user_data_callback() with only non-DC file.'''

        _remove_user_data_files(self.mount_dir,
                                dc_file=True,
                                non_dc_file=False)

        self.assertEqual('test user data',
                         dsac.read_user_data_callback(self.mount_dir))
Exemple #2
0
    def test_callback_non_dc(self):
        '''Test read_user_data_callback() with only non-DC file.'''

        _remove_user_data_files(self.mount_dir,
                                dc_file=True,
                                non_dc_file=False)

        self.assertEqual('test user data',
                         dsac.read_user_data_callback(self.mount_dir))
    def test_callback_dc(self):
        """Test read_user_data_callback() with only DC file."""

        _remove_user_data_files(self.mount_dir,
                                dc_file=False,
                                non_dc_file=True)

        self.assertEqual("test user data",
                         dsac.read_user_data_callback(self.mount_dir))
Exemple #4
0
    def test_callback_none(self):
        '''Test read_user_data_callback() no files are found.'''

        _remove_user_data_files(self.mount_dir)
        self.assertIsNone(dsac.read_user_data_callback(self.mount_dir))
Exemple #5
0
    def test_callback_both(self):
        '''Test read_user_data_callback() with both files.'''

        self.assertEqual('test user data',
                         dsac.read_user_data_callback(self.mount_dir))
    def test_callback_none(self):
        '''Test read_user_data_callback() no files are found.'''

        _remove_user_data_files(self.mount_dir)
        self.assertIsNone(dsac.read_user_data_callback(self.mount_dir))
    def test_callback_both(self):
        '''Test read_user_data_callback() with both files.'''

        self.assertEqual('test user data',
                         dsac.read_user_data_callback(self.mount_dir))
    def test_callback_both(self):
        """Test read_user_data_callback() with both files."""

        self.assertEqual("test user data",
                         dsac.read_user_data_callback(self.mount_dir))