Created
March 21, 2016 07:18
-
-
Save anonymous/87eefd81970726fd5742 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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