code stringlengths 3 6.57k |
|---|
str(self.lisa.id) |
str(self.bob.id) |
self.assertSelectOptions(to_box, [str(self.jason.id) |
str(self.john.id) |
self.select_option(from_box, str(self.arthur.id) |
self.select_option(from_box, str(self.cliff.id) |
self.selenium.find_element_by_id(choose_link) |
click() |
str(self.peter.id) |
str(self.jenny.id) |
str(self.lisa.id) |
str(self.bob.id) |
str(self.jason.id) |
str(self.john.id) |
str(self.arthur.id) |
str(self.cliff.id) |
self.select_option(from_box, str(self.peter.id) |
self.select_option(from_box, str(self.lisa.id) |
self.assertSelectedOptions(from_box, [str(self.peter.id) |
str(self.lisa.id) |
self.selenium.find_element_by_id(remove_link) |
click() |
self.assertSelectedOptions(from_box, [str(self.peter.id) |
str(self.lisa.id) |
self.deselect_option(from_box, str(self.peter.id) |
self.deselect_option(from_box, str(self.lisa.id) |
self.select_option(to_box, str(self.jason.id) |
self.select_option(to_box, str(self.john.id) |
self.assertSelectedOptions(to_box, [str(self.jason.id) |
str(self.john.id) |
self.selenium.find_element_by_id(choose_link) |
click() |
self.assertSelectedOptions(to_box, [str(self.jason.id) |
str(self.john.id) |
self.deselect_option(to_box, str(self.jason.id) |
self.deselect_option(to_box, str(self.john.id) |
self.assertEqual(self.selenium.current_url, original_url) |
test_basic(self) |
self.selenium.set_window_size(1024, 768) |
self.school.students.set([self.lisa, self.peter]) |
self.school.alumni.set([self.lisa, self.peter]) |
self.admin_login(username='super', password='secret', login_url='/') |
self.selenium.get(self.live_server_url + reverse('admin:admin_widgets_school_change', args=(self.school.id,) |
self.wait_page_ready() |
self.execute_basic_operations('vertical', 'students') |
self.execute_basic_operations('horizontal', 'alumni') |
self.selenium.find_element_by_xpath('//input[@value="Save"]') |
click() |
self.wait_page_ready() |
School.objects.get(id=self.school.id) |
self.assertEqual(list(self.school.students.all() |
self.assertEqual(list(self.school.alumni.all() |
test_filter(self) |
self.selenium.set_window_size(1024, 768) |
self.school.students.set([self.lisa, self.peter]) |
self.school.alumni.set([self.lisa, self.peter]) |
self.admin_login(username='super', password='secret', login_url='/') |
self.selenium.get(self.live_server_url + reverse('admin:admin_widgets_school_change', args=(self.school.id,) |
self.selenium.find_element_by_id('id_%s_input' % field_name) |
str(self.arthur.id) |
str(self.bob.id) |
str(self.cliff.id) |
str(self.jason.id) |
str(self.jenny.id) |
str(self.john.id) |
input.send_keys('a') |
self.assertSelectOptions(from_box, [str(self.arthur.id) |
str(self.jason.id) |
input.send_keys('R') |
self.assertSelectOptions(from_box, [str(self.arthur.id) |
input.send_keys([Keys.BACK_SPACE]) |
self.assertSelectOptions(from_box, [str(self.arthur.id) |
str(self.jason.id) |
input.send_keys([Keys.BACK_SPACE]) |
str(self.arthur.id) |
str(self.bob.id) |
str(self.cliff.id) |
str(self.jason.id) |
str(self.jenny.id) |
str(self.john.id) |
input.send_keys('a') |
self.assertSelectOptions(from_box, [str(self.arthur.id) |
str(self.jason.id) |
self.select_option(from_box, str(self.jason.id) |
self.selenium.find_element_by_id(choose_link) |
click() |
self.assertSelectOptions(from_box, [str(self.arthur.id) |
str(self.lisa.id) |
str(self.peter.id) |
str(self.jason.id) |
self.select_option(to_box, str(self.lisa.id) |
self.selenium.find_element_by_id(remove_link) |
click() |
self.assertSelectOptions(from_box, [str(self.arthur.id) |
str(self.lisa.id) |
self.assertSelectOptions(to_box, [str(self.peter.id) |
str(self.jason.id) |
input.send_keys([Keys.BACK_SPACE]) |
str(self.arthur.id) |
str(self.bob.id) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.