import unittest

import models


class DataTest(unittest.TestCase):
    # enable the datastore stub
    nosegae_datastore_v3 = True

    def test_get_entity(self):
        """Naively tests that we can fetch an entity from the datastore"""
        entity = models.Game()
        entity.put()
        self.assertIsNotNone(entity)
        self.assertEqual(entity.red_hash, 'abc')

@@ -36,16 +36,17 @@
 ass 
-Data
+Game
 Test
+s
 (uni
@@ -144,235 +144,243 @@
 est_
-get_entity(self):%0A        %22%22%22Naively tests that we can fetch an entity from the datastore%22%22%22%0A        entity = models.Game()%0A        entity.put()%0A        self.assertIsNotNone(entity)%0A        self.assertEqual(entity.red_hash, 'abc'
+hashes_are_created(self):%0A        game = models.Game()%0A        game.put()%0A%0A        for _hash in %5Bgame.red_hash, game.blue_hash, game.join_hash%5D:%0A            self.assertEqual(len(_hash), 6)%0A            self.assertIsInstance(_hash, unicode
 )%0A

Test hashes are created