Example #1
0
 def test_second_book(self):
     authors = set(text_type(x.key.id()) for x in fill_authors(Author))
     authors.add('__None')
     form = model_form(second_ndb_module.SecondBook)
     keys = set()
     for key, b, c in form().author.iter_choices():
         keys.add(key)
Example #2
0
 def test_second_book(self):
     authors = set(text_type(x.key.id()) for x in fill_authors(Author))
     authors.add('__None')
     form = model_form(second_ndb_module.SecondBook)
     keys = set()
     for key, b, c in form().author.iter_choices():
         keys.add(key)
Example #3
0
    def test_book(self):
        authors = set(x.key.urlsafe() for x in fill_authors(Author))
        authors.add('__None')
        form = model_form(Book)
        keys = set()
        for key, b, c in form().author.iter_choices():
            keys.add(key)

        self.assertEqual(authors, keys)
Example #4
0
    def test_book(self):
        authors = set(text_type(x.key.id()) for x in fill_authors(Author))
        authors.add("__None")
        form = model_form(Book)
        keys = set()
        for key, b, c in form().author.iter_choices():
            keys.add(key)

        self.assertEqual(authors, keys)
Example #5
0
    def test_book(self):
        authors = set(x.key.urlsafe() for x in fill_authors(Author))
        authors.add('__None')
        form = model_form(Book)
        keys = set()
        for key, b, c in form().author.iter_choices():
            keys.add(key)

        self.assertEqual(authors, keys)
Example #6
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.author_names = set(x.name for x in self.authors)
     self.author_ages = set(x.age for x in self.authors)
Example #7
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.author_names = set(x.name for x in self.authors)
     self.author_ages = set(x.age for x in self.authors)
Example #8
0
 def setUp(self):
     super(TestKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
Example #9
0
 def setUp(self):
     super(TestRepeatedKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
     self.second_author_key = self.authors[1].key
Example #10
0
 def setUp(self):
     super(TestKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
Example #11
0
 def setUp(self):
     super(TestRepeatedKeyPropertyField, self).setUp()
     self.authors = fill_authors(Author)
     self.first_author_key = self.authors[0].key
     self.second_author_key = self.authors[1].key
Example #12
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.first_author_id = self.authors[0].key.id()
Example #13
0
 def setUp(self):
     self.authors = fill_authors(Author)
     self.first_author_id = self.authors[0].key.id()
Example #14
0
    def setUp(self):
        super(TestReferencePropertyField, self).setUp()

        self.authors = fill_authors(Author)
        self.author_names = set(x.name for x in self.authors)
        self.author_ages = set(x.age for x in self.authors)
Example #15
0
    def setUp(self):
        super(TestReferencePropertyField, self).setUp()

        self.authors = fill_authors(Author)
        self.author_names = set(x.name for x in self.authors)
        self.author_ages = set(x.age for x in self.authors)