def testRemoveAtBlocks(self):
    self.assertEqual(self.checker.RemoveAtBlocks('\n@media (prefers-color-scheme: dark) {\n  .magic {\n    color: #000;\n  }\n}'), '\n  .magic {\n    color: #000;\n  }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@media (prefers-color-scheme: dark) {\n  .magic {\n    --mixin-definition: {\n      color: red;\n    };\n  }\n}'), '\n  .magic {\n    --mixin-definition: {\n      color: red;\n    };\n  }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@keyframes jiggle {\n  from { left: 0; }\n  50% { left: 100%; }\n  to { left: 10%; }\n}'), '\n  from { left: 0; }\n  50% { left: 100%; }\n  to { left: 10%; }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@media print {\n  .rule1 {\n    color: black;\n  }\n  .rule2 {\n    margin: 1in;\n  }\n}'), '\n  .rule1 {\n    color: black;\n  }\n  .rule2 {\n    margin: 1in;\n  }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@media (prefers-color-scheme: dark) {\n  .rule1 {\n    color: gray;\n  }\n  .rule2 {\n    margin: .5in;\n  }\n  @keyframe dark-fade {\n    0% { background: black; }\n    100% { background: darkgray; }\n  }\n}'), '\n  .rule1 {\n    color: gray;\n  }\n  .rule2 {\n    margin: .5in;\n  }\n    0% { background: black; }\n    100% { background: darkgray; }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@-webkit-keyframe anim {\n  0% { /* Ignore key frames */\n    width: 0px;\n  }\n  10% {\n    width: 10px;\n  }\n  50% { background-image: url(blah.svg); }\n  100% {\n    width: 100px;\n  }\n}'), '\n  0% { /* Ignore key frames */\n    width: 0px;\n  }\n  10% {\n    width: 10px;\n  }\n  50% { background-image: url(blah.svg); }\n  100% {\n    width: 100px;\n  }')
def testRemoveAtBlocks(self):
    self.assertEqual(self.checker.RemoveAtBlocks('\n@media (prefers-color-scheme: dark) {\n  .magic {\n    color: #000;\n  }\n}'), '\n  .magic {\n    color: #000;\n  }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@media (prefers-color-scheme: dark) {\n  .magic {\n    --mixin-definition: {\n      color: red;\n    };\n  }\n}'), '\n  .magic {\n    --mixin-definition: {\n      color: red;\n    };\n  }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@keyframes jiggle {\n  from { left: 0; }\n  50% { left: 100%; }\n  to { left: 10%; }\n}'), '\n  from { left: 0; }\n  50% { left: 100%; }\n  to { left: 10%; }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@media print {\n  .rule1 {\n    color: black;\n  }\n  .rule2 {\n    margin: 1in;\n  }\n}'), '\n  .rule1 {\n    color: black;\n  }\n  .rule2 {\n    margin: 1in;\n  }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@media (prefers-color-scheme: dark) {\n  .rule1 {\n    color: gray;\n  }\n  .rule2 {\n    margin: .5in;\n  }\n  @keyframe dark-fade {\n    0% { background: black; }\n    100% { background: darkgray; }\n  }\n}'), '\n  .rule1 {\n    color: gray;\n  }\n  .rule2 {\n    margin: .5in;\n  }\n    0% { background: black; }\n    100% { background: darkgray; }')
    self.assertEqual(self.checker.RemoveAtBlocks('\n@-webkit-keyframe anim {\n  0% { /* Ignore key frames */\n    width: 0px;\n  }\n  10% {\n    width: 10px;\n  }\n  50% { background-image: url(blah.svg); }\n  100% {\n    width: 100px;\n  }\n}'), '\n  0% { /* Ignore key frames */\n    width: 0px;\n  }\n  10% {\n    width: 10px;\n  }\n  50% { background-image: url(blah.svg); }\n  100% {\n    width: 100px;\n  }')