Esempio n. 1
0
    def test_list_volumes(self, mock_listdir):
        mock_listdir.return_value = [self.TARGET, '/dev/mapper/disk']
        encrypted_volumes = dmcrypt.list_volumes()

        self.assertEqual(1, mock_listdir.call_count)
        self.assertEqual([self.TARGET], encrypted_volumes)
Esempio n. 2
0
    def test_list_volumes(self):
        encrypted_volumes = dmcrypt.list_volumes()

        self.assertEqual([self.TARGET], encrypted_volumes)
Esempio n. 3
0
    def test_list_volumes(self, mock_listdir):
        mock_listdir.return_value = [self.TARGET, '/dev/mapper/disk']
        encrypted_volumes = dmcrypt.list_volumes()

        self.assertEqual(1, mock_listdir.call_count)
        self.assertEqual([self.TARGET], encrypted_volumes)
Esempio n. 4
0
    def test_list_volumes(self):
        encrypted_volumes = dmcrypt.list_volumes()

        self.assertEqual([self.TARGET], encrypted_volumes)