示例#1
0
文件: test_api.py 项目: g-k/elmo
    def testOneOldOneNewByActionDate(self):
        """One locale signed off and accepted on old appversion,
        nothing new on new, thus falling back to the old one.
        """
        locale = Locale.objects.get(code='da')
        repo = self._setup(locale, Action.ACCEPTED, Action.ACCEPTED)
        self.assertEqual(repo.changesets.count(), 3)
        flaglocs4av, __ = _actions4appversion(
            self.old_av,
            {locale.id},
            None,
            100,
        )
        actions = flaglocs4av[locale.id]
        action = Action.objects.get(pk=actions.values()[0])
        self.assertEqual(action.flag, Action.ACCEPTED)

        flaglocs4av, __ = _actions4appversion(self.old_av, {locale.id},
                                              None,
                                              100,
                                              up_until=self.pre_date)
        actions = flaglocs4av[locale.id]
        action = Action.objects.get(pk=actions.values()[0])
        self.assertEqual(action.flag, Action.PENDING)

        flaglocs4av, __ = _actions4appversion(self.old_av, {locale.id},
                                              None,
                                              100,
                                              up_until=self.post_date)
        actions = flaglocs4av[locale.id]
        action = Action.objects.get(pk=actions.values()[0])
        self.assertEqual(action.flag, Action.ACCEPTED)
示例#2
0
    def testOneOldOneNewByActionDate(self):
        """One locale signed off and accepted on old appversion,
        nothing new on new, thus falling back to the old one.
        """
        locale = Locale.objects.get(code='da')
        repo = self._setup(locale, Action.ACCEPTED, Action.ACCEPTED)
        eq_(repo.changesets.count(), 3)
        flaglocs4av, __ = _actions4appversion(
            self.old_av,
            set([locale.id]),
            100,
        )
        actions = flaglocs4av[locale.id]
        action = Action.objects.get(pk=actions.values()[0])
        eq_(action.flag, Action.ACCEPTED)

        flaglocs4av, __ = _actions4appversion(
            self.old_av,
            set([locale.id]),
            100,
            up_until=self.pre_date
        )
        actions = flaglocs4av[locale.id]
        action = Action.objects.get(pk=actions.values()[0])
        eq_(action.flag, Action.PENDING)

        flaglocs4av, __ = _actions4appversion(
            self.old_av,
            set([locale.id]),
            100,
            up_until=self.post_date
        )
        actions = flaglocs4av[locale.id]
        action = Action.objects.get(pk=actions.values()[0])
        eq_(action.flag, Action.ACCEPTED)
示例#3
0
文件: test_api.py 项目: g-k/elmo
 def testOneNew(self):
     """One accepted signoff on the new appversion, none on the old.
     Old appversion comes back empty.
     """
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, None, Action.ACCEPTED)
     self.assertEqual(repo.changesets.count(), 2)
     self.assertTupleEqual(
         _actions4appversion(self.old_av, {locale.id}, None, 100),
         ({}, {locale.id}))
     a4av, not_found = _actions4appversion(self.new_av, {locale.id}, None,
                                           100)
     self.assertEqual(not_found, set())
     self.assertListEqual(a4av.keys(), [locale.id])
     flag, action_id = a4av[locale.id].items()[0]
     self.assertEqual(flag, Action.ACCEPTED)
     self.assertEqual(
         Signoff.objects.get(action=action_id).locale_id, locale.id)
     avs = AppVersion.objects.all()
     flagdata = flags4appversions(avs)
     self.assertIn(self.old_av, flagdata)
     self.assertIn(self.new_av, flagdata)
     self.assertEqual(len(flagdata), 2)
     self.assertDictEqual(
         flagdata[self.new_av],
         {'da': ['fx1.1', {
             Action.ACCEPTED: self.actions[1].id
         }]})
     self.assertDictEqual(flagdata[self.old_av], {})
示例#4
0
文件: test_api.py 项目: peterbe/elmo
 def testOneOld(self):
     """One locale signed off and accepted on old appversion,
     nothing new on new, thus falling back to the old one.
     """
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, Action.ACCEPTED, None)
     eq_(repo.changesets.count(), 2)
     flaglocs4av, not_found = _actions4appversion(self.old_av,
                                                  set([locale.id]), 100)
     eq_(not_found, set())
     eq_(flaglocs4av.keys(), [locale.id])
     flag, action_id = flaglocs4av[locale.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     eq_(Signoff.objects.get(action=action_id).locale_id, locale.id)
     eq_(_actions4appversion(self.new_av, set([locale.id]), 100),
         ({}, set([locale.id])))
     flagdata = flags4appversions()
     ok_(self.old_av in flagdata)
     ok_(self.new_av in flagdata)
     eq_(len(flagdata), 2)
     eq_(flagdata[self.new_av],
         {'da': ['fx1.0', {
             Action.ACCEPTED: self.actions[1].id
         }]})
     eq_(flagdata[self.old_av], flagdata[self.new_av])
示例#5
0
文件: test_api.py 项目: g-k/elmo
 def testOneOld(self):
     """One locale signed off and accepted on old appversion,
     nothing new on new, thus falling back to the old one.
     """
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, Action.ACCEPTED, None)
     self.assertEqual(repo.changesets.count(), 2)
     flaglocs4av, not_found = _actions4appversion(self.old_av, {locale.id},
                                                  None, 100)
     self.assertEqual(not_found, set())
     self.assertListEqual(flaglocs4av.keys(), [locale.id])
     flag, action_id = flaglocs4av[locale.id].items()[0]
     self.assertEqual(flag, Action.ACCEPTED)
     self.assertEqual(
         Signoff.objects.get(action=action_id).locale_id, locale.id)
     self.assertTupleEqual(
         _actions4appversion(self.new_av, {locale.id}, None, 100),
         ({}, {locale.id}))
     avs = AppVersion.objects.all()
     flagdata = flags4appversions(avs)
     self.assertIn(self.old_av, flagdata)
     self.assertIn(self.new_av, flagdata)
     self.assertEqual(len(flagdata), 2)
     self.assertDictEqual(
         flagdata[self.new_av],
         {'da': ['fx1.0', {
             Action.ACCEPTED: self.actions[1].id
         }]})
     self.assertDictEqual(flagdata[self.old_av], flagdata[self.new_av])
示例#6
0
文件: test_api.py 项目: Pike/elmo
 def testOneOld(self):
     """One locale signed off and accepted on old appversion,
     nothing new on new, thus falling back to the old one.
     """
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, Action.ACCEPTED, None)
     self.assertEqual(repo.changesets.count(), 2)
     flaglocs4av, not_found = _actions4appversion(self.old_av,
                                                  {locale.id},
                                                  None,
                                                  100)
     self.assertEqual(not_found, set())
     self.assertListEqual(list(flaglocs4av.keys()), [locale.id])
     flag, action_id = list(flaglocs4av[locale.id].items())[0]
     self.assertEqual(flag, Action.ACCEPTED)
     self.assertEqual(
         Signoff.objects.get(action=action_id).locale_id,
         locale.id)
     self.assertTupleEqual(
         _actions4appversion(self.new_av, {locale.id}, None, 100),
         ({}, {locale.id}))
     avs = AppVersion.objects.all()
     flagdata = flags4appversions(avs)
     self.assertIn(self.old_av, flagdata)
     self.assertIn(self.new_av, flagdata)
     self.assertEqual(len(flagdata), 2)
     self.assertDictEqual(
         flagdata[self.new_av],
         {'da':
             ['fx1.0', {Action.ACCEPTED: self.actions[1].id}]
          })
     self.assertDictEqual(flagdata[self.old_av], flagdata[self.new_av])
示例#7
0
文件: test_api.py 项目: Pike/elmo
 def testOneNew(self):
     """One accepted signoff on the new appversion, none on the old.
     Old appversion comes back empty.
     """
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, None, Action.ACCEPTED)
     self.assertEqual(repo.changesets.count(), 2)
     self.assertTupleEqual(
         _actions4appversion(self.old_av, {locale.id}, None, 100),
         ({}, {locale.id}))
     a4av, not_found = _actions4appversion(self.new_av,
                                           {locale.id}, None, 100)
     self.assertEqual(not_found, set())
     self.assertListEqual(list(a4av.keys()), [locale.id])
     flag, action_id = list(a4av[locale.id].items())[0]
     self.assertEqual(flag, Action.ACCEPTED)
     self.assertEqual(
         Signoff.objects.get(action=action_id).locale_id,
         locale.id)
     avs = AppVersion.objects.all()
     flagdata = flags4appversions(avs)
     self.assertIn(self.old_av, flagdata)
     self.assertIn(self.new_av, flagdata)
     self.assertEqual(len(flagdata), 2)
     self.assertDictEqual(
         flagdata[self.new_av],
         {'da':
             ['fx1.1', {Action.ACCEPTED: self.actions[1].id}]})
     self.assertDictEqual(flagdata[self.old_av], {})
示例#8
0
文件: test_api.py 项目: peterbe/elmo
 def testOneNew(self):
     """One accepted signoff on the new appversion, none on the old.
     Old appversion comes back empty.
     """
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, None, Action.ACCEPTED)
     eq_(repo.changesets.count(), 2)
     eq_(_actions4appversion(self.old_av, set([locale.id]), 100),
         ({}, set([locale.id])))
     a4av, not_found = _actions4appversion(self.new_av, set([locale.id]),
                                           100)
     eq_(not_found, set())
     eq_(a4av.keys(), [locale.id])
     flag, action_id = a4av[locale.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     eq_(Signoff.objects.get(action=action_id).locale_id, locale.id)
     flagdata = flags4appversions()
     ok_(self.old_av in flagdata)
     ok_(self.new_av in flagdata)
     eq_(len(flagdata), 2)
     eq_(flagdata[self.new_av],
         {'da': ['fx1.1', {
             Action.ACCEPTED: self.actions[1].id
         }]})
     eq_(flagdata[self.old_av], {})
示例#9
0
文件: test_api.py 项目: hwine/elmo
 def testOneOld(self):
     """One locale signed off and accepted on old appversion,
     nothing new on new, thus falling back to the old one.
     """
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, Action.ACCEPTED, None)
     eq_(repo.changesets.count(), 2)
     flaglocs4av, not_found = _actions4appversion(self.old_av,
                                                  set([locale.id]),
                                                  100)
     eq_(not_found, set())
     eq_(flaglocs4av.keys(), [locale.id])
     flag, action_id = flaglocs4av[locale.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     eq_(Signoff.objects.get(action=action_id).locale_id, locale.id)
     eq_(_actions4appversion(self.new_av, set([locale.id]), 100),
         ({}, set([locale.id])))
     flagdata = flags4appversions()
     ok_(self.old_av in flagdata)
     ok_(self.new_av in flagdata)
     eq_(len(flagdata), 2)
     eq_(flagdata[self.new_av], {'da':
         ['fx1.0', {Action.ACCEPTED: self.actions[1].id}]
         })
     eq_(flagdata[self.old_av], flagdata[self.new_av])
示例#10
0
文件: test_api.py 项目: g-k/elmo
 def testOneOldAndOtherNew(self):
     da = Locale.objects.get(code='da')
     de = Locale.objects.get(code='de')
     repo = self._setup(da, Action.ACCEPTED, None)
     self.assertEqual(repo.changesets.count(), 2)
     repo = self._setup(de, None, Action.ACCEPTED)
     self.assertEqual(repo.changesets.count(), 2)
     a4av, not_found = _actions4appversion(self.old_av, {da.id, de.id},
                                           None, 100)
     self.assertSetEqual(not_found, {de.id})
     self.assertListEqual(a4av.keys(), [da.id])
     flag, action_id = a4av[da.id].items()[0]
     self.assertEqual(flag, Action.ACCEPTED)
     a4av, not_found = _actions4appversion(self.new_av, {da.id, de.id},
                                           None, 100)
     self.assertSetEqual(not_found, {da.id})
     self.assertListEqual(a4av.keys(), [de.id])
     flag, action_id = a4av[de.id].items()[0]
     self.assertEqual(flag, Action.ACCEPTED)
     a4av, not_found = _actions4appversion(self.old_av, {da.id, de.id},
                                           None, 100)
     self.assertSetEqual(not_found, {de.id})
     self.assertListEqual(a4av.keys(), [da.id])
     flag, action_id = a4av[da.id].items()[0]
     self.assertEqual(flag, Action.ACCEPTED)
     a4avs = actions4appversions(appversions=[self.new_av],
                                 locales=[da.id, de.id])
     self.assertEqual(len(a4avs), 2)
     self.assertIn(self.old_av, a4avs)
     self.assertIn(self.new_av, a4avs)
     a4av = a4avs[self.new_av]
     self.assertEqual(len(a4av), 1)
     a4av = a4avs[self.old_av]
     self.assertEqual(len(a4av), 1)
     avs = AppVersion.objects.all()
     flagdata = flags4appversions(avs)
     self.assertIn(self.old_av, flagdata)
     self.assertIn(self.new_av, flagdata)
     self.assertEqual(len(flagdata), 2)
     self.assertDictEqual(
         flagdata[self.new_av], {
             'da': ['fx1.0', {
                 Action.ACCEPTED: self.actions[1].id
             }],
             'de': ['fx1.1', {
                 Action.ACCEPTED: self.actions[3].id
             }]
         })
     self.assertDictEqual(
         flagdata[self.old_av],
         {'da': ['fx1.0', {
             Action.ACCEPTED: self.actions[1].id
         }]})
示例#11
0
文件: test_api.py 项目: peterbe/elmo
 def testOneOldAndOtherNew(self):
     da = Locale.objects.get(code='da')
     de = Locale.objects.get(code='de')
     repo = self._setup(da, Action.ACCEPTED, None)
     eq_(repo.changesets.count(), 2)
     repo = self._setup(de, None, Action.ACCEPTED)
     eq_(repo.changesets.count(), 2)
     a4av, not_found = _actions4appversion(self.old_av, set([da.id, de.id]),
                                           100)
     eq_(not_found, set([de.id]))
     eq_(a4av.keys(), [da.id])
     flag, action_id = a4av[da.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     a4av, not_found = _actions4appversion(self.new_av, set([da.id, de.id]),
                                           100)
     eq_(not_found, set([da.id]))
     eq_(a4av.keys(), [de.id])
     flag, action_id = a4av[de.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     a4av, not_found = _actions4appversion(self.old_av, set([da.id, de.id]),
                                           100)
     eq_(not_found, set([de.id]))
     eq_(a4av.keys(), [da.id])
     flag, action_id = a4av[da.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     a4avs = actions4appversions(appversions=[self.new_av],
                                 locales=[da.id, de.id])
     eq_(len(a4avs), 2)
     ok_(self.old_av in a4avs)
     ok_(self.new_av in a4avs)
     a4av = a4avs[self.new_av]
     eq_(len(a4av), 1)
     a4av = a4avs[self.old_av]
     eq_(len(a4av), 1)
     flagdata = flags4appversions()
     ok_(self.old_av in flagdata)
     ok_(self.new_av in flagdata)
     eq_(len(flagdata), 2)
     eq_(
         flagdata[self.new_av], {
             'da': ['fx1.0', {
                 Action.ACCEPTED: self.actions[1].id
             }],
             'de': ['fx1.1', {
                 Action.ACCEPTED: self.actions[3].id
             }]
         })
     eq_(flagdata[self.old_av],
         {'da': ['fx1.0', {
             Action.ACCEPTED: self.actions[1].id
         }]})
示例#12
0
文件: test_api.py 项目: hwine/elmo
 def testEmpty(self):
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, None, None)
     eq_(repo.changesets.count(), 1)
     eq_(_actions4appversion(self.old_av, set([locale.id]), 100),
         ({}, set([locale.id])))
     eq_(_actions4appversion(self.new_av, set([locale.id]), 100),
         ({}, set([locale.id])))
     flagdata = flags4appversions()
     ok_(self.old_av in flagdata)
     ok_(self.new_av in flagdata)
     eq_(len(flagdata), 2)
     eq_(flagdata[self.new_av], {})
     eq_(flagdata[self.old_av], flagdata[self.new_av])
示例#13
0
文件: test_api.py 项目: peterbe/elmo
 def testEmpty(self):
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, None, None)
     eq_(repo.changesets.count(), 1)
     eq_(_actions4appversion(self.old_av, set([locale.id]), 100),
         ({}, set([locale.id])))
     eq_(_actions4appversion(self.new_av, set([locale.id]), 100),
         ({}, set([locale.id])))
     flagdata = flags4appversions()
     ok_(self.old_av in flagdata)
     ok_(self.new_av in flagdata)
     eq_(len(flagdata), 2)
     eq_(flagdata[self.new_av], {})
     eq_(flagdata[self.old_av], flagdata[self.new_av])
示例#14
0
文件: test_api.py 项目: flodolo/elmo
 def testOneOldAndOtherNew(self):
     da = Locale.objects.get(code='da')
     de = Locale.objects.get(code='de')
     repo = self._setup(da, Action.ACCEPTED, None)
     eq_(repo.changesets.count(), 2)
     repo = self._setup(de, None, Action.ACCEPTED)
     eq_(repo.changesets.count(), 2)
     a4av, not_found = _actions4appversion(self.old_av,
                                           {da.id, de.id}, None, 100)
     eq_(not_found, {de.id})
     eq_(a4av.keys(), [da.id])
     flag, action_id = a4av[da.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     a4av, not_found = _actions4appversion(self.new_av,
                                           {da.id, de.id}, None, 100)
     eq_(not_found, {da.id})
     eq_(a4av.keys(), [de.id])
     flag, action_id = a4av[de.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     a4av, not_found = _actions4appversion(self.old_av,
                                           {da.id, de.id}, None, 100)
     eq_(not_found, {de.id})
     eq_(a4av.keys(), [da.id])
     flag, action_id = a4av[da.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     a4avs = actions4appversions(appversions=[self.new_av],
                                 locales=[da.id, de.id])
     eq_(len(a4avs), 2)
     ok_(self.old_av in a4avs)
     ok_(self.new_av in a4avs)
     a4av = a4avs[self.new_av]
     eq_(len(a4av), 1)
     a4av = a4avs[self.old_av]
     eq_(len(a4av), 1)
     avs = AppVersion.objects.all()
     flagdata = flags4appversions(avs)
     ok_(self.old_av in flagdata)
     ok_(self.new_av in flagdata)
     eq_(len(flagdata), 2)
     eq_(flagdata[self.new_av], {
         'da': ['fx1.0', {Action.ACCEPTED: self.actions[1].id}],
         'de': ['fx1.1', {Action.ACCEPTED: self.actions[3].id}]
         })
     eq_(flagdata[self.old_av], {
         'da': ['fx1.0', {Action.ACCEPTED: self.actions[1].id}]
         })
示例#15
0
文件: test_api.py 项目: Pike/elmo
 def testOneOldAndOtherNew(self):
     da = Locale.objects.get(code='da')
     de = Locale.objects.get(code='de')
     repo = self._setup(da, Action.ACCEPTED, None)
     self.assertEqual(repo.changesets.count(), 2)
     repo = self._setup(de, None, Action.ACCEPTED)
     self.assertEqual(repo.changesets.count(), 2)
     a4av, not_found = _actions4appversion(self.old_av,
                                           {da.id, de.id}, None, 100)
     self.assertSetEqual(not_found, {de.id})
     self.assertListEqual(list(a4av.keys()), [da.id])
     flag, action_id = list(a4av[da.id].items())[0]
     self.assertEqual(flag, Action.ACCEPTED)
     a4av, not_found = _actions4appversion(self.new_av,
                                           {da.id, de.id}, None, 100)
     self.assertSetEqual(not_found, {da.id})
     self.assertListEqual(list(a4av.keys()), [de.id])
     flag, action_id = list(a4av[de.id].items())[0]
     self.assertEqual(flag, Action.ACCEPTED)
     a4av, not_found = _actions4appversion(self.old_av,
                                           {da.id, de.id}, None, 100)
     self.assertSetEqual(not_found, {de.id})
     self.assertListEqual(list(a4av.keys()), [da.id])
     flag, action_id = list(a4av[da.id].items())[0]
     self.assertEqual(flag, Action.ACCEPTED)
     a4avs = actions4appversions(appversions=[self.new_av],
                                 locales=[da.id, de.id])
     self.assertEqual(len(a4avs), 2)
     self.assertIn(self.old_av, a4avs)
     self.assertIn(self.new_av, a4avs)
     a4av = a4avs[self.new_av]
     self.assertEqual(len(a4av), 1)
     a4av = a4avs[self.old_av]
     self.assertEqual(len(a4av), 1)
     avs = AppVersion.objects.all()
     flagdata = flags4appversions(avs)
     self.assertIn(self.old_av, flagdata)
     self.assertIn(self.new_av, flagdata)
     self.assertEqual(len(flagdata), 2)
     self.assertDictEqual(flagdata[self.new_av], {
         'da': ['fx1.0', {Action.ACCEPTED: self.actions[1].id}],
         'de': ['fx1.1', {Action.ACCEPTED: self.actions[3].id}]
         })
     self.assertDictEqual(flagdata[self.old_av], {
         'da': ['fx1.0', {Action.ACCEPTED: self.actions[1].id}]
         })
示例#16
0
文件: test_api.py 项目: Pike/elmo
 def testEmpty(self):
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, None, None)
     self.assertEqual(repo.changesets.count(), 1)
     self.assertTupleEqual(
         _actions4appversion(self.old_av, {locale.id}, None, 100),
         ({}, {locale.id}))
     self.assertTupleEqual(
         _actions4appversion(self.new_av, {locale.id}, None, 100),
         ({}, {locale.id}))
     avs = AppVersion.objects.all()
     flagdata = flags4appversions(avs)
     self.assertIn(self.old_av, flagdata)
     self.assertIn(self.new_av, flagdata)
     self.assertEqual(len(flagdata), 2)
     self.assertDictEqual(flagdata[self.new_av], {})
     self.assertDictEqual(flagdata[self.old_av], flagdata[self.new_av])
示例#17
0
文件: test_api.py 项目: g-k/elmo
 def testEmpty(self):
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, None, None)
     self.assertEqual(repo.changesets.count(), 1)
     self.assertTupleEqual(
         _actions4appversion(self.old_av, {locale.id}, None, 100),
         ({}, {locale.id}))
     self.assertTupleEqual(
         _actions4appversion(self.new_av, {locale.id}, None, 100),
         ({}, {locale.id}))
     avs = AppVersion.objects.all()
     flagdata = flags4appversions(avs)
     self.assertIn(self.old_av, flagdata)
     self.assertIn(self.new_av, flagdata)
     self.assertEqual(len(flagdata), 2)
     self.assertDictEqual(flagdata[self.new_av], {})
     self.assertDictEqual(flagdata[self.old_av], flagdata[self.new_av])
示例#18
0
文件: test_api.py 项目: hwine/elmo
 def testOneNew(self):
     """One accepted signoff on the new appversion, none on the old.
     Old appversion comes back empty.
     """
     locale = Locale.objects.get(code='da')
     repo = self._setup(locale, None, Action.ACCEPTED)
     eq_(repo.changesets.count(), 2)
     eq_(_actions4appversion(self.old_av, set([locale.id]), 100),
         ({}, set([locale.id])))
     a4av, not_found = _actions4appversion(self.new_av,
                                           set([locale.id]), 100)
     eq_(not_found, set())
     eq_(a4av.keys(), [locale.id])
     flag, action_id = a4av[locale.id].items()[0]
     eq_(flag, Action.ACCEPTED)
     eq_(Signoff.objects.get(action=action_id).locale_id, locale.id)
     flagdata = flags4appversions()
     ok_(self.old_av in flagdata)
     ok_(self.new_av in flagdata)
     eq_(len(flagdata), 2)
     eq_(flagdata[self.new_av], {'da':
         ['fx1.1', {Action.ACCEPTED: self.actions[1].id}]})
     eq_(flagdata[self.old_av], {})