def testcase_readergroup_insert(self):
    'test groups.insert(i,newgroups)'
    groupssnapshot = list(readergroups())
    groups = readergroups()
    groups.insert(0, self.pinpadgroup)
    self.assertEqual(groups, (groupssnapshot + [self.pinpadgroup]))
    groups.insert(1, self.pinpadgroup)
    self.assertEqual(groups, (groupssnapshot + [self.pinpadgroup]))
    groups.insert(1, self.biogroup)
    self.assertEqual(groups, (groupssnapshot + [self.pinpadgroup, self.biogroup]))
    groups.remove(self.biogroup)
    groups.remove(self.pinpadgroup)
test groups.insert(i,newgroups)
def testcase_readergroup_insert(self):
    
    groupssnapshot = list(readergroups())
    groups = readergroups()
    groups.insert(0, self.pinpadgroup)
    self.assertEqual(groups, (groupssnapshot + [self.pinpadgroup]))
    groups.insert(1, self.pinpadgroup)
    self.assertEqual(groups, (groupssnapshot + [self.pinpadgroup]))
    groups.insert(1, self.biogroup)
    self.assertEqual(groups, (groupssnapshot + [self.pinpadgroup, self.biogroup]))
    groups.remove(self.biogroup)
    groups.remove(self.pinpadgroup)