'Test the MultiSet() methods.'

def testMultiSet(self):

    unicode_string = u'this    is    a    u\xf1\xeec\xf6d\xe9    string'
    data_store.DB.MultiSet(self.test_row, {'aff4:size': [1], 'aff4:stored': [unicode_string], 'aff4:unknown_attribute': ['hello']}, token=self.token)
    (stored, _) = data_store.DB.Resolve(self.test_row, 'aff4:size', token=self.token)
    self.assertEqual(stored, 1)
    (stored, _) = data_store.DB.Resolve(self.test_row, 'aff4:stored', token=self.token)
    self.assertEqual(stored, unicode_string)
    (stored, _) = data_store.DB.Resolve(self.test_row, 'aff4:unknown_attribute', token=self.token)
    self.assertEqual(stored, 'hello')
    self.assertEqual(type(stored), str)
