def test_none(self): """Test when projection is None.""" self.assertIsNone( datastore_query.compute_projection(None, 'order_field'))
def test_dedup(self): """Test dedup.""" self.assertSetEqual( set(['a', 'b', 'c']), set(datastore_query.compute_projection(['a', 'b', 'c'], 'b')))
def test_combine(self): """Test combine.""" self.assertSetEqual( {'a', 'b', 'c'}, set(datastore_query.compute_projection(['a', 'c'], 'b')))