Beispiel #1
0
    def test_retrieve_raw(self):
        
        storage = StorageFactory(kind='basic').get_storage()

        data = [ '*****@*****.**', 'mYsEcret007']

        storage.store(data)

        read_data = storage.retrieve()

        assert data[0] in read_data[0]
        assert data[1] in read_data[1]
Beispiel #2
0
    def test_retrieve_tuple(self):

        storage = StorageFactory().get_storage()

        data = ('*****@*****.**', 'mYsEcret007')

        storage.store(data)

        read_data = storage.retrieve()

        assert len(read_data) == 2
        assert data[0] in read_data[0]
        assert data[1] in read_data[1]