예제 #1
0
 def test_show_attrs(self):
     with Print.patch() as p:
         show_attrs('hcurve', self.calc_id)
     self.assertEqual("'hcurve' is not in <DataStore %d>" %
                      self.calc_id, str(p))
     with Print.patch() as p:
         show_attrs('hcurves', self.calc_id)
     self.assertEqual("nbytes 48", str(p))
예제 #2
0
 def test_show_attrs(self):
     with Print.patch() as p:
         show_attrs('hcurve', self.calc_id)
     self.assertEqual("'hcurve' is not in <DataStore %d>" %
                      self.calc_id, str(p))
     with Print.patch() as p:
         show_attrs('hcurves', self.calc_id)
     self.assertEqual("imtls [['PGA' '3']\n ['SA(0.1)' '3']]\nnbytes 48",
                      str(p))
예제 #3
0
 def test_show_attrs(self):
     with Print.patch() as p:
         show_attrs('hcurve', self.calc_id)
     self.assertEqual("'hcurve' is not in <DataStore %d>" %
                      self.calc_id, str(p))
     with Print.patch() as p:
         show_attrs('hcurves', self.calc_id)
     self.assertEqual("imtls [['PGA' '3']\n ['SA(0.1)' '3']]\nnbytes 48",
                      str(p))
예제 #4
0
 def test_show_attrs(self):
     with Print.patch() as p:
         show_attrs('sitecol', self.calc_id)
     self.assertEqual('__pyclass__ openquake.hazardlib.site.SiteCollection',
                      str(p))
예제 #5
0
 def test_show_attrs(self):
     with Print.patch() as p:
         show_attrs('poes', self.calc_id)
     self.assertEqual('nbytes 48', str(p))
예제 #6
0
 def test_show_attrs(self):
     with Print.patch() as p:
         show_attrs('sitecol', self.calc_id)
     self.assertEqual(
         '__pyclass__ openquake.hazardlib.site.SiteCollection\nnbytes 37',
         str(p))