Changeset f3bf622 in sasview for test/sasdataloader


Ignore:
Timestamp:
Apr 6, 2017 10:15:08 PM (8 years ago)
Author:
andyfaff
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
6435594
Parents:
ec8886e
Message:

MAINT: remove has_key occurences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/test/testplugings.py

    rb699768 rf3bf622  
    3232        output = self.L.load('test_data.test') 
    3333        self.assertEqual(output.x[0], 1234.) 
    34         self.assertTrue(self.L.loaders.has_key('.test')) 
     34        self.assertTrue('.test' in self.L.loaders) 
    3535         
    3636class testZip(unittest.TestCase): 
     
    6161        output = self.L.load('test_data.test') 
    6262        self.assertEqual(output.x[0], 1234.) 
    63         self.assertTrue(self.L.loaders.has_key('.test')) 
     63        self.assertTrue('.test' in self.L.loaders) 
    6464         
    6565         
Note: See TracChangeset for help on using the changeset viewer.