@@ -0,0 +1,1175 @@
+#!/usr/bin/env python%0A%22%22%22%0A:Author Patrik Valkovic%0A:Created 23.06.2017 16:39%0A:Licence GNUv3%0APart of grammpy%0A%0A%22%22%22%0Afrom unittest import TestCase, main%0Afrom grammpy import Grammar%0Afrom grammpy import Nonterminal%0A%0A%0Aclass TempClass(Nonterminal):%0A    pass%0A%0A%0Aclass Second(Nonterminal):%0A    pass%0A%0A%0Aclass Third(Nonterminal):%0A    pass%0A%0A%0Aclass NonterminalIterationTest(TestCase):%0A    def test_oneTerminalTerms(self):%0A        gr = Grammar()%0A        gr.add_term('a')%0A        for i in gr.terms():%0A            self.assertEqual(i.s, 'a')%0A%0A    def test_oneTerminalGetTerm(self):%0A        gr = Grammar()%0A        gr.add_term('a')%0A        for i in gr.get_term():%0A            self.assertEqual(i.s, 'a')%0A%0A    def test_ThreeTerminalTerms(self):%0A        gr = Grammar()%0A        gr.add_term(%5B0, 'a', TempClass%5D)%0A        s = set(term.s for term in gr.terms())%0A        for i in %5B0, 'a', TempClass%5D:%0A            self.assertTrue(i in s)%0A%0A    def test_ThreeTerminalGetTerm(self):%0A        gr = Grammar()%0A        gr.add_term(%5B0, 'a', TempClass%5D)%0A        s = set(term.s for term in gr.get_term())%0A        for i in %5B0, 'a', TempClass%5D:%0A            self.assertTrue(i in s)%0A%0A%0Aif __name__ == '__main__':%0A    main()%0A

Add file for nonterms iteration tests