Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_assignment(self):
s = 'a=b'
self.assertTokens(s, [
t(tt.ASSIGNMENT_WORD, 'a=b', [0, 3],
flags=set([flags.word.NOSPLIT, flags.word.ASSIGNMENT]))])
s = 'a+=b'
self.assertTokens(s, [
t(tt.ASSIGNMENT_WORD, 'a+=b', [0, 4],
flags=set([flags.word.NOSPLIT, flags.word.ASSIGNMENT]))])