Skip to content

Instantly share code, notes, and snippets.

Created March 21, 2016 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/87eefd81970726fd5742 to your computer and use it in GitHub Desktop.
Save anonymous/87eefd81970726fd5742 to your computer and use it in GitHub Desktop.
def test_filtered_subgroups(self):
# import our test group
self.import_group('Test Group', self.TEST_GROUP_STR)
# export the group and check that it's the same thing we imported
self.assert_group_export('Test Group', self.TEST_GROUP_STR)
# go to the management tab
self.open_group('Test Group')
self.click_button('Management')
# enter a subgroup name
self.set_editbox_text('New Subgroup Name', 'Test Subgroup')
# we'll now be on the items tab - set a filter and click the "Add >>>" button
self.set_editbox_text('Filter:', self.TEST_FILTER)
self.click_button('Add >>>')
# close the TSM window
self.click_button('Close')
# check that the group export contains the expected items
self.assert_group_export('Test Group`Test Subgroup', self.TEST_SUBGROUP_EXPECT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment