Exemplo n.º 1
0
    def test_show_calc(self):
        with Print.patch() as p:
            show(self.datastore.calc_id)
        self.assertIn('sitemesh', str(p))

        with Print.patch() as p:
            show(self.datastore.calc_id, 'sitemesh')
        self.assertEqual(str(p), '[(0.0, 0.0)]')
Exemplo n.º 2
0
    def test_show_calc(self):
        with Print.patch() as p:
            show(self.datastore.calc_id)
        self.assertIn('sitemesh', str(p))

        with Print.patch() as p:
            show(self.datastore.calc_id, 'sitemesh')
        self.assertEqual(str(p), '''\
lon:float64:,lat:float64:
0.00000000E+00,0.00000000E+00''')
Exemplo n.º 3
0
    def test_show_calc(self):
        with Print.patch() as p:
            show(self.datastore.calc_id)
        self.assertIn('sitemesh', str(p))

        with Print.patch() as p:
            show(self.datastore.calc_id, 'sitemesh')
        self.assertEqual(str(p), '''\
lon:float64:,lat:float64:
0.00000000E+00,0.00000000E+00''')
Exemplo n.º 4
0
    def test_show_calc(self):
        # test show all
        with Print.patch() as p:
            show('all')
        with Print.patch() as p:
            show('contents', self.calc_id)
        self.assertIn('sitemesh', str(p))

        with Print.patch() as p:
            show('sitemesh', self.calc_id)
        self.assertEqual(str(p), '''\
lon,lat
0.000000E+00,0.000000E+00''')
Exemplo n.º 5
0
    def test_show_calc(self):
        # test show all
        with Print.patch() as p:
            show(0)
        with Print.patch() as p:
            show(self.datastore.calc_id)
        self.assertIn('sitemesh', str(p))

        with Print.patch() as p:
            show(self.datastore.calc_id, 'sitemesh')
        self.assertEqual(str(p), '''\
lon,lat
0.00000000E+00,0.00000000E+00''')
Exemplo n.º 6
0
    def test_show_calc(self):
        # test show all
        with Print.patch() as p:
            show('all')
        with Print.patch() as p:
            show('contents', self.datastore.calc_id)
        self.assertIn('sitemesh', str(p))

        with Print.patch() as p:
            show('sitemesh', self.datastore.calc_id)
        self.assertEqual(str(p), '''\
lon,lat
0.000000E+00,0.000000E+00''')