コード例 #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)]')
コード例 #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''')
コード例 #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''')
コード例 #4
0
ファイル: commands_test.py プロジェクト: griffij/oq-risklib
    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''')
コード例 #5
0
ファイル: commands_test.py プロジェクト: rcgee/oq-risklib
    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''')
コード例 #6
0
ファイル: commands_test.py プロジェクト: amirj700/oq-risklib
    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''')