old_contents: 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')
  
new_contents: import unittest
  
  import models
  
  
  class GameTests(unittest.TestCase):
      # enable the datastore stub
      nosegae_datastore_v3 = True
  
      def test_hashes_are_created(self):
          game = models.Game()
          game.put()
  
          for _hash in [game.red_hash, game.blue_hash, game.join_hash]:
              self.assertEqual(len(_hash), 6)
              self.assertIsInstance(_hash, unicode)
  
subject: Test hashes are created